package com.myc.demo3.permission.service.impl;

import com.myc.demo3.permission.api.PermissionServiceApi;
import com.myc.demo3.permission.entity.Permission;
import com.myc.demo3.permission.mapper.PermissionMapper;
import com.myc.demo3.permission.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 常规的内部接口
 * @Author: mayc
 * @Date: 2020/1/2 9:26
 */
@Service
public class PermissionServiceImpl implements PermissionService {

    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public void addPermission() {

    }

    @Override
    public void deletePermission() {

    }

    @Override
    public void updatePermission() {

    }

    @Override
    public List<String> findPermission() {
        return null;
    }

    @Override
    public Permission getById(Long id) {
        return permissionMapper.selectById(id);
    }
}
